projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
694edee
)
Add hard error for Lowrance USR V3 files.
author
robertl
<robertl>
Mon, 5 Apr 2010 13:04:34 +0000
(13:04 +0000)
committer
robertl
<robertl>
Mon, 5 Apr 2010 13:04:34 +0000
(13:04 +0000)
lowranceusr.c
patch
|
blob
|
history
diff --git
a/lowranceusr.c
b/lowranceusr.c
index 9fc1a876616a14dd1c7e6c4ed4b8735ffd5b1513..90f2cf3621dbb0080a5b2a44831c770f04ccd110 100644
(file)
--- a/
lowranceusr.c
+++ b/
lowranceusr.c
@@
-620,6
+620,10
@@
data_read(void)
if (MajorVersion < 2) {
fatal(MYNAME ": input file is from an old version of the USR file and is not supported\n");
}
+ if (MajorVersion > 3) {
+ fatal(MYNAME ": input file version %d is not supported\n",
+ MajorVersion);
+ }
NumWaypoints = gbfgetint16(file_in);